import { ApiProperty } from '@nestjs/swagger';
import { BaseAdminResult, BaseResult } from "@/common/base/base.result";
import { BooleanNumber, CarouselMobileJumpType, CarouselPositionCode } from "common/utils/data";

export class CarouselAllResult extends BaseResult {
  @ApiProperty({
    description: '名称',
  })
  title: string;

  @ApiProperty({
    description: '图片',
  })
  img: string;

  @ApiProperty({
    description: '链接',
  })
  url: string;

  @ApiProperty({
    description: '轮播位uuid',
  })
  positionCode: string;

  @ApiProperty({
    description: '移动端跳转类型',
  })
  mobileJumpType: CarouselMobileJumpType;

  @ApiProperty({
    description: '移动端跳转id',
  })
  mobileJumpId: string;

  @ApiProperty({
    description: '移动端跳转扩展参数',
  })
  mobileJumpExtra: any;
}

export class CarouselAdminIndexResult extends BaseAdminResult {
  @ApiProperty({
    description: '名称',
  })
  title: string;

  @ApiProperty({
    description: '图片',
  })
  img: string;

  @ApiProperty({
    description: '链接',
  })
  url: string;

  @ApiProperty({
    description: '轮播位',
  })
  positionCode: CarouselPositionCode;

  @ApiProperty({
    description: '排序',
  })
  sort: number;

  @ApiProperty({
    description: '描述',
  })
  desc: string;

  @ApiProperty({
    description: '状态',
  })
  status: BooleanNumber;

  @ApiProperty({
    description: '移动端跳转类型',
  })
  mobileJumpType: CarouselMobileJumpType;

  @ApiProperty({
    description: '移动端跳转id',
  })
  mobileJumpId: string;

  @ApiProperty({
    description: '移动端跳转扩展参数',
  })
  mobileJumpExtra: any;
}
